package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.QrContract
import com.changpay.zywy.mvp.model.QrModel


/**
 * Created by chenxz on 2018/5/27.
 */
class QrPresenter : BasePresenter<QrContract.Model, QrContract.View>(), QrContract.Presenter {
    override fun getQrInfo(token: String) {
        mModel?.getQrInfo(token)?.ss(mModel, mView) {
            mView?.showQrInfo(it.result)
        }
    }

    override fun createModel(): QrContract.Model? = QrModel()

}